package com.waltercedric.java.joomla.gridupdater.protocol;

import com.waltercedric.java.joomla.gridupdater.vo.Site;

public class ProtocolFactory {

  public static SiteConnector getSiteConnector(Site site) {
    if (site.getProtocol().equals("ssh")) {
      return new SSH();
    }

    return new FTP();
  }

}
